extents
Type
function
Summary
Returns a list of the smallest and largest keys for each dimension of an array.
Syntax
the extents of <array>
extents(<array>)
Description
Use the extents function to find the minimum and maximum row and column numbers of an array whose keys are integers.
If any of the keys of the array is non-numeric, the extents function returns empty.
Parameters
Name | Type | Description |
---|---|---|
array | array |
Examples
the extents of myArray
put item 1 of line 2 of the extents of theFigures into columnsMinimum
Value
Name | Type | Description |
---|---|---|
return | The extents function returns one line for each dimension of the array. Each line contains two numbers separated by commas. The first item is the lowest key number in that dimension, and the second item is the highest key number. |
Related
control structure: function
function: keys, round, matrixMultiply, sum, max, min
keyword: line
Compatibility and Support
Introduced
LiveCode 1.1
OS
mac
windows
linux
ios
android
Platforms
desktop
server
mobile